home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr40
/
x1j4_src.zip
/
IPV.H
< prev
next >
Wrap
Text File
|
1995-01-20
|
3KB
|
94 lines
/*****************************************************************************/
/* */
/* */
/* ***** ***** */
/* ***** ***** */
/* ***** ***** */
/* ***** ***** */
/* *************** *************** */
/* ***************** ***************** */
/* *************** *************** */
/* ***** ***** TheNet */
/* ***** ***** Portable. Compatible. */
/* ***** ***** Public Domain */
/* ***** ***** G8KBB */
/* */
/* This software is public domain ONLY for non commercial use */
/* */
/* */
/*****************************************************************************/
/* Level 3, Internet Gateway variables and externals */
/* Version 1.00 */
/* Dave Roberts G8KBB, 7, Rowanhayes Close, Ipswich, England */
/* 10-April-91 */
/* This software is released into the public domain on the understanding
* that it is to be used only for non life threatening, amateur, non
* commercial purposes only.
* It has been written expressly for use in self tuition of
* people in amateur radio communications only. It is NOT claimed that this
* software works correctly.
*
* USELONG, if defined, causes long integers to be used where appropriate
* so failing to define it will avoid longs completely !
*
* Released as TheNet X-1J, September 1993
*
* EXTERN is used to conditionally create variables by reuse of header file
*
* Released as TheNet X-1J release 4, January 1995
*/
/* SNMP MIB variables, used for statistics and control. See RFC 1066 */
EXTERN struct mib_entry Ip_mib[NUMIPMIB+1];
#ifdef ICMPSTATS
EXTERN struct mib_entry Icmp_mib[NUMICMPMIB+1];
#endif
EXTERN lhtyp IP_Routes; /* Routing table */
EXTERN struct rt_cache IP_Route_Cache;
EXTERN lhtyp iprxfl;
EXTERN lhtyp arprxfl;
EXTERN lhtyp Arp_tab;
EXTERN ipaddr my_ip_addr, bcast_ip_addr;
#ifndef USELONG
EXTERN CK_SUM ip_cksum; /* static used to compute ip checksums when not using longs */
#endif
extern ipaddr DEFMYIPADDR, DEFIPBCAST;
extern unsigned char DEFIPTTL, DEFIPL2MODES;
extern unsigned char DEFIPENABLE;
/* externals in other thenet modules ...
*/
extern char l4pidx;
extern char l4pcid;
extern char l4ahd2;
extern char l4ahd3;
extern char l4aopc;
extern lhtyp l3txl;
extern nodtyp *despoi;
extern l2ltyp lnktbl[];
extern l2ltyp *lnkpoi;
extern unsigned nmbfre;
extern char myid[];
#ifdef BANKED
EXTERN IP ip; /* structure for decoded ip header */
EXTERN unsigned short id_cntr; /* datagram serial number for ip_send */
EXTERN ARP arp;
#else
extern ARP arp;
#endif
EXTERN unsigned ARPrunning, ARPtimer;
EXTERN unsigned char ARPcounter;
#ifdef MOD_MTU
extern unsigned mtu_ip0;
extern unsigned mtu_ip1;
extern unsigned mtu_ipn;
#endif